package dj.model;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * LoginInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "login_info", catalog = "")
public class LoginInfo implements java.io.Serializable {

	// Fields

	private String id;
	private String loginip;
	private Timestamp logintime;
	private String userid;
	private String logtype;

	// Constructors

	/** default constructor */
	public LoginInfo() {
	}

	/** minimal constructor */
	public LoginInfo(String id, String userid, String logtype) {
		this.id = id;
		this.userid = userid;
		this.logtype = logtype;
	}

	/** full constructor */
	public LoginInfo(String id, String loginip, Timestamp logintime, String userid, String logtype) {
		this.id = id;
		this.loginip = loginip;
		this.logintime = logintime;
		this.userid = userid;
		this.logtype = logtype;
	}

	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false, length = 36)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "loginip", length = 18)
	public String getLoginip() {
		return this.loginip;
	}

	public void setLoginip(String loginip) {
		this.loginip = loginip;
	}

	@Column(name = "logintime", length = 19)
	public Timestamp getLogintime() {
		return this.logintime;
	}

	public void setLogintime(Timestamp logintime) {
		this.logintime = logintime;
	}

	@Column(name = "userid", nullable = false, length = 36)
	public String getUserid() {
		return this.userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	@Column(name = "logtype", nullable = false, length = 20)
	public String getLogtype() {
		return this.logtype;
	}

	public void setLogtype(String logtype) {
		this.logtype = logtype;
	}

}